<?php

namespace App\Http\Controllers\YApi;

// use Illuminate\Http\Request;
use Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;

use Session;
use Redirect;
use Illuminate\Pagination\LengthAwarePaginator;

use App\Models\Book;
use App\Models\Shudan;
use App\Models\UsersReg;
use App\Models\BooksReview;

class ShupinginfoController extends Controller
{

	public function shupinginfo($id)
    {
		//显示发布的长书评内容
		$booksreviews = BooksReview::find($id);
		
		$booksreviews['books'] = Book::find($booksreviews->book_id);
		
		$booksreviews['users'] = UsersReg::find($booksreviews->uid);
		
        return $booksreviews;
    }
    
}